package values.avatar
{
import flash.utils.Dictionary;

/**
 * AvatarTypeValueList
 * @author jliang
 *
 */
public class AvatarTypeValueList
{
	private static var list:Dictionary; /* AvatarTypeValue */
	
	public function get types():Dictionary
	{
		return list;
	}
	
	[Data(type="mapping", 
			   mapping="type", 
			   ref="values.avatar.AvatarTypeValue",
			   way="one_to_more",
			   object="flash.utils.Dictionary",
	           key="@key")]
	public function set types(value:Dictionary):void
	{
		list = value;
	}
	
	private static var _arrList:Array;

	public static function get arrList():Array
	{
		return _arrList;
	}
	
	[Data(type="mapping", 
			   mapping="type", 
			   ref="values.avatar.AvatarTypeValue",
			   way="one_to_more")]
	public function set arrList(value:Array):void
	{
		_arrList = value;
	}
	
	public function get arrList():Array
	{
		return _arrList;
	}

	
	public static function get avatarTypes():Dictionary
	{
		return list;
	}
	
	public static function getByKey(key:String):AvatarTypeValue
	{
		return list[key];
	}
}
}